package com.gyf.crm.mapper;

import com.gyf.crm.model.CourseOrder;
import com.gyf.crm.model.MonthIncome;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface CourseOrderMapper {
    public void insert(CourseOrder order);

    public List<CourseOrder> findList(CourseOrder condition, int start, int limit);

    public int findCountByMap(Map<String,Object> map);
    public List<CourseOrder> findListByMap(Map<String,Object> map);



    public int findCount(CourseOrder condition);


    /**
     * 获取月收入
     * @return
     */
    public List<MonthIncome> getMonthIncomes();

    /**
     * 根据定单ID删除定单
     * @param order_id
     */
    public void delete(String order_id);
    /**
     * 根据定单ID查找定单
     * @param order_id
     */
    public CourseOrder findOrderById(String order_id);

    /**
     * 更新定单
     * @param order
     */
    public void update(CourseOrder order);
}
